/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package control;

import DAO.*;
import entidad.Actor;
import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Juan
 */
public class ControlActor {
    private ActorDAO actorDAO=new ActorDAO();

    public boolean createActor(Actor actor){
        return actorDAO.crear(actor);
    }
    
    public List<Actor> buscarPorNombre(String nombre){
        return (List<Actor>)actorDAO.buscar(nombre);
    }
    
    public void editActor(String name, String lastName, String lugarNac, Date fechaNac, int id){
        actorDAO.editActor(name, lastName, lugarNac, fechaNac, id);
    }

    public Collection<Actor> buscarActores() {
        return actorDAO.buscarActores();
    }
}
